package Server.ServerMainFrame.ServerMainFrameModel.ServerThread;

import Packet.*;

import java.io.*;

import Server.ServerMainFrame.ServerMainFrameModel.ServerThread.*;


public class SendPacket
{
    public SendPacket(Packet packet, Thread thread)
    {
    	try
    	{
    		((ServerThread)thread).getObjectOutputStream().writeObject(packet);
    	}
    	catch(IOException exception)
    	{
    		System.out.println("write Object");
    		exception.printStackTrace();
    	}
    }
}